package com.example.android.raycast;

import java.util.Timer;
import java.util.TimerTask;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.Window;

public class SplashActivity extends Activity {

	private long splashDelay = 1000;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        Log.w(this.getClass().getName(), "SplashActivity.OnCreate");
        
        requestWindowFeature(Window.FEATURE_NO_TITLE);        
        setContentView(R.layout.splash);
        
        TimerTask task = new TimerTask()
        {
			@Override
			public void run() {
				
				Intent i = new Intent(getApplicationContext(), RaycastActivity.class);
				startActivity(i);
			}
        	
        };     
        Timer timer = new Timer();
        timer.schedule(task, splashDelay);
                
	}
}
